﻿using System;
using System.ComponentModel.DataAnnotations;

namespace NandleNF.DataType.Telefone
{
    [Serializable()]
    [Table("Telefone")]
    public class TTelefone
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public Int32 TelefoneID { get; set; }

        [Required]
        public TTipoTelefone TipoTelefone { get; set; }

        [Required]
        [StringLength(3)]
        public String DDD { get; set; }

        [Required]
        [StringLength(9)]
        public String Numero { get; set; }
    }
}
